<template>
  <div class="UserInfo">
    <LazyLoadTab v-model="activeName" :tabMenus="menus"></LazyLoadTab>
  </div>
</template>

<script>
import Cookies from 'js-cookie';
export default {
  name: 'UserInfo',
  data() {
    return {
      smsType:Cookies.get('smsType'),
      wechatType:Cookies.get('wechatType'),
      activeName: '员工信息',
      menus:[],
      menusNoWechatType: [
        {
          title: '员工信息',
          path: 'common/auth/userInfo/EmployeeInformation/index'
        }
        // ,
        // {
        //   title: '更改密码',
        //   path: 'common/auth/userInfo/ChangePassword/index'
        // }
      ],
      menusNoSmsType: [
        {
          title: '员工信息',
          path: 'common/auth/userInfo/EmployeeInformation/index'
        }
        // ,
        // {
        //   title: '更改密码',
        //   path: 'common/auth/userInfo/ChangePassword/index'
        // }
        // { //cms  不需要这个功能
        //   title: '绑定/变更微信',
        //   path: 'common/auth/userInfo/bindWX/index'
        // }
      ],
      menusHasSmsType: [
        {
          title: '员工信息',
          path: 'common/auth/userInfo/EmployeeInformation/index'
        }
        // ,
        // {
        //   title: '更改密码',
        //   path: 'common/auth/userInfo/ChangePassword/index'
        // }
      ],
    };
  },
  created() {
    if(this.smsType == 10041001){
      this.menus = this.menusHasSmsType
    }else if(this.wechatType == 10041002){
      this.menus = this.menusNoWechatType
    }else{
      this.menus = this.menusNoSmsType
    }
  },
};
// {
//           title: '绑定/变更手机号',
//           path: 'common/auth/userInfo/bindPhone/index'
//         },
//         {
//           title: '绑定/变更微信',
//           path: 'common/auth/userInfo/bindWX/index'
//         }
</script>

<style lang="less" scoped>
</style>
